package jiubeirobot.com.robotshop.ui.adapter;

import android.content.Context;
import android.view.View;

import java.util.List;

import jiubeirobot.com.robotshop.R;
import jiubeirobot.com.robotshop.base.BaseRecyclerAdapter;
import jiubeirobot.com.robotshop.base.BaseViewHolder;
import jiubeirobot.com.robotshop.bean.StockBean;

/**
 * ==========================
 * 创建人：TheJoker丶豪 on
 * 创建时间：2017/9/5.
 * 创建内容：购物车的适配器
 * ==========================
 */

public class ShopCartAdapter extends BaseRecyclerAdapter<StockBean> {

    public OnCustomNumInputTextChange onCustomNumInputTextChange;


    public void setOnCustomNumInputTextChange(OnCustomNumInputTextChange onCustomNumInputTextChange) {
        this.onCustomNumInputTextChange = onCustomNumInputTextChange;
    }

    public ShopCartAdapter(Context context, List<StockBean> list) {
        super(context, list, R.layout.item_shopping_card_item);
    }

    @Override
    public void convert(BaseViewHolder holder, StockBean stockBean) {

    }


    public interface OnCustomNumInputTextChange {
        void textChange(View v, int num, StockBean bean);

        void delete(View v, StockBean bean, int postion);
    }

}
